import { HttpClient } from '@angular/common/http';
import { Inject, Injectable } from '@angular/core';
import { API_CONFIG, ServiceModule } from './service.module';

@Injectable({
  providedIn: ServiceModule
})
export class AccountService {

  constructor(private http: HttpClient, @Inject(API_CONFIG) private uri: string) { }

  inType() {
    let url = this.uri + '/custom/account/type';
    return this.http.post(url, { style: 'in' });
  }

  outType() {
    let url = this.uri + '/custom/account/type';
    return this.http.post(url, { style: 'out' });
  }

  page(selectData: any) {
    let url = this.uri + '/custom/account/page';
    return this.http.post(url, selectData);
  }

}
